Repository navigation
docs: document greptime_mito_scan_max_concurrent_files metric - #3070
Merged
fengjiachun merged 2 commits intoDec 2, 2026
Merged
fengjiachun merged 2 commits into
fengjiachun merged 2 commits into
Conversation
evenyag
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Document the
greptime_mito_scan_max_concurrent_filesPrometheus histogram introduced inGreptimeTeam/greptimedb#9758and backported to v1.3 inGreptimeTeam/greptimedb#9963(the scan-memory configuration options and breaking changes from#9101in#9963were already documented in #2974):user-guide/deployments-administration/configuration.md(Scan memory accounting/扫描内存计量): document the metric type (histogram),typelabel values (queryandcompaction), recording points, and semantics — specifically that it records planned maximum concurrent sources per region scan limit evaluation (including memtable sources, rejected scans, and memory-budgeted scans) or all input SST files per compaction reader, rather than live open files, along with the official Grafana Scan Max Concurrent Files per Instance panel.user-guide/deployments-administration/performance-tuning/performance-tuning-tips.md(Query->Metrics/查询->指标): addgreptime_mito_scan_max_concurrent_filesto the query-diagnostic metrics table with a link to theScan memory accountingsection.Closes #2998
Scope
upgrade.mdin Nightly and 1.3 (EN/ZH): the scan-memory breaking changes from#9101are already documented underUpgrading from v1.2 to v1.3(Scan memory accounting changes/扫描内存计量变更), andgreptime_mito_scan_max_concurrent_filesis an additive observability metric, so noupgrade.mdedits are needed. Navigation is unchanged.Verification
Verified against
GreptimeTeam/greptimedbv1.3.2(06e9dfee115e9d1bff581207515a88966752178e; metric present sincev1.3.0) andmain(e736a2ee9e33548a03b440053def9c02b1a95e0b):src/mito2/src/metrics.rs:SCAN_MAX_CONCURRENT_FILESregistered asHistogramVecnamedgreptime_mito_scan_max_concurrent_fileswith labeltype.src/mito2/src/read/seq_scan.rs:check_scan_limitobservestype="query"beforeuses_scan_memory_limit()andmax_concurrent_scan_fileschecks;build_flat_reader_for_compactionobservestype="compaction"withself.stream_ctx.input.num_files().src/mito2/src/read/series_scan.rs:check_scan_limitobservestype="query"with the sum ofrange_meta.indices.len()(including memtable sources) before limit checks.grafana/dashboards/metrics/{cluster,standalone}/dashboard.md: confirmed the Scan Max Concurrent Files per Instance panel displays p95, p99, and average by instance andtype.GreptimeTeam/greptimedb#9963(config/config.md,src/mito2/src/config.rs,src/mito2/src/metrics.rs) and confirmed no other configuration keys or metrics remain undocumented.Commands run:
git diff --checkpassedDOC_LANG=en pnpm check:linkspassedDOC_LANG=zh pnpm check:linkspassedChecklist